/** ****************************************************************************
  Copyright 2012 Progress Software Corporation
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
    http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
**************************************************************************** **/
/*------------------------------------------------------------------------
    File        : ILifecycleStrategy
    Purpose     : Is called during the activation and deactivation of an instance.
    Syntax      : 
    Description : 
    @author pjudge
    Created     : Fri Mar 05 07:55:45 EST 2010
    Notes       : 
  ----------------------------------------------------------------------*/
using OpenEdge.Core.InjectABL.Lifecycle.*.
using Progress.Lang.*.

interface OpenEdge.Core.InjectABL.Lifecycle.ILifecycleStrategy:  
    /** Contributes to the activation of the instance in the specified context.
        @param poContext The lifecycle context
        @param poInstance The instance being activated
     */
    method public void Activate(poContext as ILifecycleContext, poInstance as Object).
    
    /** Contributes to the deactivation of the instance in the specified context.
        @param poContext The lifecycle context
        @param poInstance The instance being deactivated
      */
    method public void Deactivate(poContext as ILifecycleContext, poInstance as Object).
    
end interface.
